package com.atguigu.spring5.testdemo;

import com.atguigu.spring5.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.awt.print.Book;
import java.util.ArrayList;
import java.util.List;

/**
 * @date: 2021/12/7 11:28
 * @description:
 */
public class TestSpring5 {
    @Test
    public void testAccountMoney(){
        ApplicationContext context=
                new ClassPathXmlApplicationContext("bean1.xml");
        UserService userService = context.getBean("userService", UserService.class);
        Object[] reduce={100,"lucy"};
        Object[] add={100,"mary"};
        userService.accountMoney(reduce,add);
    }
}
